<UserControl x:Class="P2.Cuberry.Modules.Clinicom.CCPatientVisit.CCPatientVisitsListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    >


    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/CuberryDataGrid.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    
    <Grid VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" MinHeight="44" />            
 
        </Grid.RowDefinitions>

        <DataGrid Grid.Row ="0" ItemsSource="{Binding}" 
                     Name="PatientVisitsList" 
                     SelectionChanged="CCPatientVisitsList_SelectionChanged" 
                     MouseDoubleClick="CCPatientVisitsList_DblClick"
                     Style="{DynamicResource CuberryDataGridStyle}"
                     VerticalAlignment="Stretch">
            
            <DataGrid.Columns>

                <DataGridTextColumn Header="{Translate OpeningTimeL}" Binding="{Binding Path=OpeningTime, StringFormat=dd/MM/yyyy}" MinWidth="40" Width="100" />  
                <DataGridTextColumn Header="{Translate ClosingTimeL}" Binding="{Binding Path=ClosingTime, StringFormat=dd/MM/yyyy}" MinWidth="40" Width="100" />  

                <DataGridTextColumn Header="{Translate PatientIDL}" Binding="{Binding Path=CCPatientCur}" MinWidth="40" Width="100" />  
                <DataGridTextColumn Header="{Translate BedIDL}" Binding="{Binding Path=CCBedCur}" MinWidth="40" Width="100" />  
                <DataGridTextColumn Header="{Translate VisitCategoryIDL}" Binding="{Binding Path=CCVisitCategoryCur}" MinWidth="40" Width="100" />  
                <DataGridTextColumn Header="{Translate ContractorL}" Binding="{Binding Path=CROrganisationCur}" MinWidth="40" Width="100" />  
                                
                <DataGridTextColumn Header="{Translate StatusNameL}" Binding="{Binding Path=StatusName, Mode=OneWay}" MinWidth="40" Width="*" IsReadOnly="True" />
                

            </DataGrid.Columns>
        </DataGrid>
    
</Grid>
</UserControl>